package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 充值表 wdy_recharge
 * 
 * @author ruoyi
 * @date 2019-12-15
 */
public class WdyRecharge extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	/*1处理中*/
	public static final int STATUS_PROCESSING = 1;
	/*2成功*/
	public static final int STATUS_SUCCESS = 2;
	/*3失败*/
	public static final int STATUS_FAIL = 3;
	/** id */
		private Long id;
	/** 充值id */
		private String rechargeId;
	/** 用户id */
		private String userId;
	/** 充值金额 */
		private BigDecimal amount;
	/** 实际金额 */
	private BigDecimal amountTrue;
	/** 金额类型 */
		private Integer amountType;
	/** 充值状态（1支付中 2支付成功 3支付失败) */
		private Integer rechargeStatus;
	/** 删除标志（0代表存在 1代表删除） */
		private Integer delFlag;
	/** 创建者 */
		private String createBy;
	/** 创建时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date createTime;
	/** 更新者 */
		private String updateBy;
	/** 更新时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date updateTime;
	/** 备注信息 */
		private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setRechargeId(String rechargeId) 
	{
		this.rechargeId = rechargeId;
	}

	public String getRechargeId() 
	{
		return rechargeId;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setAmount(BigDecimal amount) 
	{
		this.amount = amount;
	}

	public BigDecimal getAmount() 
	{
		return amount;
	}
	public void setAmountType(Integer amountType) 
	{
		this.amountType = amountType;
	}

	public Integer getAmountType() 
	{
		return amountType;
	}
	public void setRechargeStatus(Integer rechargeStatus) 
	{
		this.rechargeStatus = rechargeStatus;
	}

	public Integer getRechargeStatus() 
	{
		return rechargeStatus;
	}
	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

	public BigDecimal getAmountTrue() {
		return amountTrue;
	}

	public void setAmountTrue(BigDecimal amountTrue) {
		this.amountTrue = amountTrue;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("rechargeId", getRechargeId())
            .append("userId", getUserId())
            .append("amount", getAmount())
            .append("amountType", getAmountType())
            .append("rechargeStatus", getRechargeStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
